package excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.health.pojo.OrderSetting;

/**
 * 监听预约设置Excel文件的读取
 */
public class OrderSettingListener extends AnalysisEventListener<OrderSetting> {

    @Override
    public void invoke(OrderSetting orderSetting, AnalysisContext analysisContext) {
        //开始读取
        System.out.println("读到的数据：" + orderSetting.getOrderDate() + ", " + orderSetting.getNumber());
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
        System.out.println("读取结束...");
    }
}
